﻿//using System.Collections.Generic;
//using System.Data;
//using System.Threading.Tasks;

//namespace NiuX.Dapper.Dapper;

///// <summary>
///// 非泛型 Dapper 仓储
///// </summary>
//public partial interface IDapperRepository
//{
//    /// <summary>
//    /// 连接上下文
//    /// </summary>
//    IDbConnection DbConnection { get; }


//    /// <summary>
//    /// 查询返回动态类型
//    /// </summary>
//    /// <param name="sql"></param>
//    /// <param name="param"></param>
//    /// <param name="transaction"></param>
//    /// <param name="buffered"></param>
//    /// <param name="commandTimeout"></param>
//    /// <param name="commandType"></param>
//    /// <returns></returns>
//    IEnumerable<dynamic> Query(string sql, object param = null, IDbTransaction transaction = null, bool buffered = true, int? commandTimeout = null, CommandType? commandType = null);

//    List<dynamic> QueryAsList(string sql, object param = null, IDbTransaction transaction = null, bool buffered = true, int? commandTimeout = null, CommandType? commandType = null);

//    /// <summary>
//    /// 查询返回特定类型
//    /// </summary>
//    /// <typeparam name="T"></typeparam>
//    /// <param name="sql"></param>
//    /// <param name="param"></param>
//    /// <param name="transaction"></param>
//    /// <param name="buffered"></param>
//    /// <param name="commandTimeout"></param>
//    /// <param name="commandType"></param>
//    /// <returns></returns>
//    IEnumerable<T> Query<T>(string sql, object param = null, IDbTransaction transaction = null, bool buffered = true, int? commandTimeout = null, CommandType? commandType = null);

//    /// <summary>
//    /// 查询返回动态类型
//    /// </summary>
//    /// <param name="sql"></param>
//    /// <param name="param"></param>
//    /// <param name="transaction"></param>
//    /// <param name="commandTimeout"></param>
//    /// <param name="commandType"></param>
//    /// <returns></returns>
//    Task<IEnumerable<dynamic>> QueryAsync(string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null);

//    /// <summary>
//    /// 查询返回特定类型
//    /// </summary>
//    /// <typeparam name="T"></typeparam>
//    /// <param name="sql"></param>
//    /// <param name="param"></param>
//    /// <param name="transaction"></param>
//    /// <param name="commandTimeout"></param>
//    /// <param name="commandType"></param>
//    /// <returns></returns>
//    Task<IEnumerable<T>> QueryAsync<T>(string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null);

//    /// <summary>
//    /// 执行命令
//    /// </summary>
//    /// <param name="sql"></param>
//    /// <param name="param"></param>
//    /// <param name="transaction"></param>
//    /// <param name="commandTimeout"></param>
//    /// <param name="commandType"></param>
//    /// <returns></returns>
//    int Execute(string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null);

//    /// <summary>
//    /// 执行命令
//    /// </summary>
//    /// <param name="sql"></param>
//    /// <param name="param"></param>
//    /// <param name="transaction"></param>
//    /// <param name="commandTimeout"></param>
//    /// <param name="commandType"></param>
//    /// <returns></returns>
//    Task<int> ExecuteAsync(string sql, object param = null, IDbTransaction transaction = null, int? commandTimeout = null, CommandType? commandType = null);
//}


